package com.lei.sandbox;


import com.lei.sandbox.model.ExecuteCodeRequest;
import com.lei.sandbox.model.ExecuteCodeResponse;

import java.io.IOException;

/**
 * 代码沙箱接口定义
 * @author lei
 */
public interface CodeSandbox {
    /**
     * 执行代码
     *
     * @param executeCodeRequest
     * @return
     */
    ExecuteCodeResponse executeCode(ExecuteCodeRequest executeCodeRequest) throws IOException, InterruptedException;
}
